package com.pan.framework.entity;


/**
 * 反思：
 *  设计框架经验不足，我为毛要搞个BeanInfo。。。多封装一层感觉屁用没有
 *  写到现在也改不了，早知道不搞这个直接用HashMap的更好
 *
 */
public class BeanInfo {

    String name;
    Class clazz;
    Object bean;

    public BeanInfo(String name, Class clazz, Object bean) {
        this.name = name;
        this.clazz = clazz;
        this.bean = bean;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

    public Object getBean() {
        return bean;
    }

    public void setBean(Object bean) {
        this.bean = bean;
    }

    @Override
    public String toString() {
        return "BeanInfo{" +
                "name='" + name + '\'' +
                ", clazz=" + clazz +
                ", bean=" + bean +
                '}';
    }
}
